<template>
  <div class="app-container">
    <el-tabs v-model="id">
      <el-tab-pane label="扫脸" name="0">
        <SubForm :id="id" :formData.sync="formData0" :key="0"/>
      </el-tab-pane>
      <el-tab-pane label="注册" name="1">
        <SubForm :id="id"  :formData.sync="formData1" :key="1" />
      </el-tab-pane>
      <el-tab-pane label="OSD配置" name="third">
        <SetOsd></SetOsd>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import { faceConfigApi} from "@/api/access/equipment";
import SubForm from './sub.vue'
import SetOsd from './setOsd.vue'

export default {
  name: "SelectMachine",
  data() {
    return {
      id:0,
      formData0:{},
      formData1:{}
    }
  },
  created() {
    this.getData();
  },
  components:{SubForm,SetOsd},
  methods: {
    getData() {
      faceConfigApi().then((response) => {
        if (response) {
          this.formData0 = response[0];
          this.formData1 = response[1];
        }
      });
    },
  },
};
</script>

<style lang="scss" scoped>

</style>